<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<link rel="stylesheet" type="text/css" href="css/loong.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<%@ include file="include/top.jsp" %>
	
	<div class="container">
	  <div class="row row-inner">
		<%@ include file="include/left.jsp" %>
		<div class="span8">
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
				<li class="active">
					<a href="#"><i class="icon-fire"></i>想法</a>
				</li>
				<li class="pull-right"><i class="icon-plus"></i><a href="newIdea.jspx" class="link-black">发表想法</a></li>
			</ul>
			<div class="wall" style="margin-bottom:20px;width:600px;">
				<c:if test="${not empty sessionScope.error }">
					<div class="alert alert-error">
	  					<button type="button" class="close" data-dismiss="alert">&times;</button>
	  					<h1 >${sessionScope.error }</h1>
					
					</div>
	        		
	        	</c:if>
	        	<c:remove var="error" scope="session"/>
				<c:forEach  items="${ sessionScope.ideaList}" var="item" >
						
					 <h4><a id="idea" style="color:#52264A;font-size:18px;" href="showIdea.jspx?id=${item.id}">${item.title}</a></h4>
					  <p style="font-size:14px;line-height:1.5;">${item.content}</p>
					  <small>${sessionScope.employee.username} 发布于:${item.time}</small>
					  <a href="editIdea.jspx?id=${item.id}" title="编辑"><i class="icon-pencil"></i></a>
					  <input name="${item.id}" type="hidden"/>
					  <a href="deleteIdea.jspx?id=${item.id}" val="${item.id }" id="del" title="删除"><i class="icon-trash"></i></a>
					  <hr/>
				</c:forEach>
				
				<c:if test="${not empty sessionScope.error }">
	        		<div style="margin-top:150px;margin-left:150px;margin-right:150px;" class="alert alert-error">
	  					<h1 >${sessionScope.error }</h1>
					</div>
					<c:remove var="error" scope="session"/>
	        	</c:if>
				
				<div class="clear"></div>
			</div>
		</div>
	  </div>
	  <%@ include file="include/foot.jsp" %>
	</div>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript">
		
		$(document).ready(function(){
			
			
			
		});
		
	</script>
	
</body>
</html>